package com.qing.springbootinit.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;

// * @author <a href="https://github.com/qingfengzy">qingfengzy</a>

@Data
@TableName("chatroom") // 明确指定表名
public class ChatRoom {

    /**
     * id
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * userId
     */
    private Long userId;

    /**
     * 房间简介
     */
    private String roomBrief;

    /**
     * 状态
     */
    private Integer status;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 是否删除
     */
    @TableLogic
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
